package com.sun.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sun.dto.PurchaseDto;
import com.sun.entity.PurchaseHead;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Project: hospitalDrugInformationManagement
 * @Author: 86178
 * @Date: 2023/3/21 15:15
 * @FileName: PurchaseHeadMapper
 * @Description: ""
 */
@SuppressWarnings("all")
@Mapper
public interface PurchaseHeadMapper extends BaseMapper<PurchaseHead> {
    //分页查询
    IPage<PurchaseDto> selectPurchaseDtoListPage(@Param("page") IPage<PurchaseDto> page, @Param("userName") String userName, @Param("supplierName") String supplierName, @Param("status") Integer status, LocalDateTime startTime, LocalDateTime endTime);

    //
    List<PurchaseDto> selectPurchaseDtoList(@Param("userName") String userName, @Param("supplierName") String supplierName, Integer status, LocalDateTime startTime, LocalDateTime endTime);

}
